﻿using Bricks.Caching;
using Motar.UnityExtensions;

namespace Motar.ServiceProcess.UnityExtensions
{

    /// <summary>
    /// 
    /// </summary>
    public class UnityServiceBootstrapperExtension : UnityBootstrapperExtension
    {

        /// <summary>
        /// 
        /// </summary>
        protected override void ConfigureOthers()
        {
            base.ConfigureOthers();

            ConfigureCache();
        }

        /// <summary>
        /// 
        /// </summary>
        protected virtual void ConfigureCache()
        {
            RegisterIfMissing<ICacheFacade, NullCacheFacade>(true);
        }
    }
}
